﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FAQs.aspx.cs" Inherits="webpages_FAQs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h2 style="text-align:center">Frequently asked questions</h2>
    <br /><hr />
    <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSourceFAQ">
        <AlternatingItemTemplate>
            <li style="list-style-type: none;"> <h4> Question:</h4>
                - <asp:Label ID="faq_questionLabel" runat="server" Text='<%# Eval("faq_question") %>' />
                <br />
                
                <asp:Label ID="faq_answerLabel" runat="server" Text='<%# Eval("faq_answer") %>' />
                <br />
            </li>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <li style="">faq_question:
                <asp:TextBox ID="faq_questionTextBox" runat="server" Text='<%# Bind("faq_question") %>' />
                <br />
                faq_answer:
                <asp:TextBox ID="faq_answerTextBox" runat="server" Text='<%# Bind("faq_answer") %>' />
                <br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
            </li>
        </EditItemTemplate>
        <EmptyDataTemplate>
            No data was returned.
        </EmptyDataTemplate>
        <InsertItemTemplate>
            <li style="">faq_question:
                <asp:TextBox ID="faq_questionTextBox" runat="server" Text='<%# Bind("faq_question") %>' />
                <br />faq_answer:
                <asp:TextBox ID="faq_answerTextBox" runat="server" Text='<%# Bind("faq_answer") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
            </li>
        </InsertItemTemplate>
        <ItemSeparatorTemplate>
<br />
        </ItemSeparatorTemplate>
        <ItemTemplate>
            <li style="list-style-type: none">
                <h4> Question:</h4>
                - <asp:Label ID="faq_questionLabel" runat="server" Text='<%# Eval("faq_question") %>' />
                <br />
                
                <asp:Label ID="faq_answerLabel" runat="server" Text='<%# Eval("faq_answer") %>' />
                <br />
            </li>
        </ItemTemplate>
        <LayoutTemplate>
            <ul id="itemPlaceholderContainer" runat="server" style="">
                <li runat="server" id="itemPlaceholder" />
            </ul>
            <div style="">
            </div>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <li style="">Question:
                <asp:Label ID="faq_questionLabel" runat="server" Text='<%# Eval("faq_question") %>' />
                <br />
                faq_answer:
                <asp:Label ID="faq_answerLabel" runat="server" Text='<%# Eval("faq_answer") %>' />
                <br />
            </li>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSourceFAQ" runat="server" ConnectionString="<%$ ConnectionStrings:EnviromentSurvey_S3ConnectionString %>" SelectCommand="SELECT [faq_question], [faq_answer] FROM [FAQs]"></asp:SqlDataSource>
</asp:Content>

